#! /usr/bin/env python
# -*- coding:utf-8 -*-

import sys
from PyQt4 import QtGui

from PyDilbert import *

class Dilbert(QtGui.QApplication):
    def __init__(self):
        QtGui.QApplication.__init__(self,sys.argv)

        self.mainWindow = MainWindow()

        self.translator = QTranslator()
        self.translator.load(("pydilbert-%s.qm" % QLocale.system().name()), "/usr/share/pydilbert")
        self.installTranslator(self.translator)

        self.mainWindow.show()
        self.exec_()

if __name__ == "__main__":
    Dilbert()
